const merge = require('webpack-merge').default
const commonConfig = require('./webpack.common.js')
const devConfig = require('./webpack.dev.js')
const prodConfig = require('./webpack.prod.js')

module.exports = (env, argv) => {
    if(env.WEBPACK_SERVE ){
        return merge(commonConfig, devConfig)
    }else if(env.WEBPACK_BUILD){
        return merge(commonConfig, prodConfig)
    }
}